Skip to content

refactor: separate test support from production paths - #113

Merged
danielkov merged 2 commits into
mainfrom
refactor/test-boundaries
Sep 6, 2026
Merged

refactor: separate test support from production paths#113
danielkov merged 2 commits into
mainfrom
refactor/test-boundaries

Conversation

@danielkov

Copy link
Copy Markdown
Contributor

Summary

Document test boundaries in AGENTS.md and remove test-only production switches, instrumentation, and alternate implementations. Keep fixtures in test modules and exercise real replay, cancellation, registration, cache, and transport paths.

Impact

Detached tool completion now seals the live TUI agent stream through ToolPatched; that behavior previously existed only in a test-only event.

Technical details

Fakes stay at external boundaries

Local Git fixtures use the existing subprocess interface. JWKS fixtures supply fetched documents while exercising production cache and signature-validation logic. Production Git remains HTTPS-only and OpenAI signing-key retrieval stays pinned.

Outcomes replace implementation spies

Replace synthetic ACP turn control and response-order callbacks with real session handles, committed injection receipts, and in-memory transport exchanges. Rendering assertions retain visible-metadata and cache-content coverage without claiming to prove bounded work.

@danielkov
danielkov enabled auto-merge (squash) September 5, 2026 21:00
@danielkov
danielkov force-pushed the refactor/test-boundaries branch from ea74d71 to 1842026 Compare September 5, 2026 22:21
kit-code-agent[bot]
kit-code-agent Bot previously approved these changes Sep 5, 2026

@kit-code-agent kit-code-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found. The changes look good to merge.

@kit-code-agent kit-code-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found. The changes look good to merge.

@danielkov
danielkov merged commit da42ba4 into main Sep 6, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant